package com.summer.data.demo.service;

import com.summer.data.demo.tables.ClassTable;
import com.summer.data.spring.SessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassService {

    @Autowired
    SessionTemplate sessionTemplate;

    public List<ClassTable> queryClass() {
        return sessionTemplate.query(ClassTable.class);
    }
}
